﻿@using Beetle.Modules.BtAdminUI.Abstractions

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />  
    <link rel="icon" type="image/ico" href="favicon.ico" />
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
    <link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />  
    <link href="_content/Z.Blazor.Diagrams/style.min.css" rel="stylesheet" />
    <link href="_content/Z.Blazor.Diagrams/default.styles.min.css" rel="stylesheet" />
    <link href="_content/Beetle.Modules.BtAdminUI.Shared/BtShared.css" rel="stylesheet" />
    <link href="Beetle.Exes.BtAdminUI.SsrServer.styles.css" rel="stylesheet" />
    <HeadOutlet @rendermode="RenderMode.InteractiveServer" />
</head>

<body>
    <Routes @rendermode="RenderMode.InteractiveServer" />
    <script src="_framework/blazor.web.js"></script>
    <script src="_content/MudBlazor/MudBlazor.min.js"></script>
    <script src="_content/Z.Blazor.Diagrams/script.min.js"></script>
</body>

</html>

@code {
    // // 见 https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#static-ssr-pages-in-a-globally-interactive-app
    // [CascadingParameter]
    // private HttpContext HttpContext { get; set; } = default!;

    // private IComponentRenderMode? RenderModeForPage =>
    //     HttpContext.Request.Path.StartsWithSegments(BtAdminUIUrlConst.URL_AUTH_PREFIX)
    //         ? null
    //         : RenderMode.InteractiveServer;
}